package com.woniuxy.yogaapp.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/*
 * 聊天信息表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Chat {
	private Integer chatid;     //信息编号、
	private Integer sender;     //发送人、uid外键
	private Integer recipient;  //接收人、uid外键
	private String mes;     //消息内容
	private String state;	//消息状态:未读/已读
	private String mestime;   //消息时间
	private Integer mestype;	//消息类型:1.私聊2.通知3.请求4.好友5.关注
	private List<ChatImage> images;
    private String deal;// 处理结果


	public Chat(Integer chatid, Integer sender, Integer recipient, String mes, String state, String mestime,
			Integer mestype) {
		this.chatid = chatid;
		this.sender = sender;
		this.recipient = recipient;
		this.mes = mes;
		this.state = state;
		this.mestime = mestime;
		this.mestype = mestype;
	}


	public Chat(Integer chatid, Integer sender, Integer recipient, String mes, String state, String mestime,
			Integer mestype, String deal) {
		super();
		this.chatid = chatid;
		this.sender = sender;
		this.recipient = recipient;
		this.mes = mes;
		this.state = state;
		this.mestime = mestime;
		this.mestype = mestype;
		this.deal = deal;
	}


	public Chat(int sender, int recipient, String mes, String state, String mestime, int mestype) {
		this.sender = sender;
		this.recipient = recipient;
		this.mes = mes;
		this.state = state;
		this.mestime = mestime;
		this.mestype = mestype;
	}

}
